// SKNotes - a note taking and gathering tool
// Copyright (C) 2009  Stefan Kueng
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.


using System;
using System.Windows;
using IfacesEnumsStructsClasses;

namespace SKNotes.Utilities.Events
{
    [CLSCompliantAttribute(false)]
    public delegate void BeforePasteEventHandler(object sender, RoutedEventArgs e);

    public delegate void BeforeNavigate2EventHandler(object sender, BeforeNavigate2EventArgs e);
    public class BeforeNavigate2EventArgs : System.Windows.RoutedEventArgs
    {
        public BeforeNavigate2EventArgs(RoutedEvent routedEvent, string URL) 
            : base(routedEvent)
        {
            this.url = URL;
            this.Handled = false;
        }

        public string url;
    }

    [CLSCompliantAttribute(false)]
    public delegate void DragEnterEventHandler(object sender, DragEnterEventArgs e);
    [CLSCompliantAttribute(false)]
    public class DragEnterEventArgs : System.Windows.RoutedEventArgs
    {
        public DragEnterEventArgs(RoutedEvent routedEvent, DataObject DropDataObject, uint KeyState, System.Windows.Point point, uint Effect) 
            : base(routedEvent)
        {
            this.keystate = KeyState;
            this.pt = point;
            this.dropeffect = (DROPEFFECT)Effect;
            this.Handled = false;
            this.dataobject = DropDataObject;
        }

        public uint keystate;
        public System.Windows.Point pt;
        public DROPEFFECT dropeffect;
        public DataObject dataobject;
    }

    [CLSCompliantAttribute(false)]
    public delegate void DragOverEventHandler(object sender, DragOverEventArgs e);
    [CLSCompliantAttribute(false)]
    public class DragOverEventArgs : System.Windows.RoutedEventArgs
    {
        public DragOverEventArgs(RoutedEvent routedEvent, uint KeyState, System.Windows.Point pt, uint Effect) 
            : base(routedEvent)
        {
            this.keystate = KeyState;
            this.pt = pt;
            this.dropeffect = (DROPEFFECT)Effect;
            this.Handled = false;
        }

        public uint keystate;
        public System.Windows.Point pt;
        public DROPEFFECT dropeffect;
    }

    [CLSCompliantAttribute(false)]
    public delegate void DropEventHandler(object sender, DropEventArgs e);
    [CLSCompliantAttribute(false)]
    public class DropEventArgs : System.Windows.RoutedEventArgs
    {
        public DropEventArgs(RoutedEvent routedEvent, uint KeyState, System.Windows.Point pt, DataObject DropDataObject, uint Effect)
            : base(routedEvent)
        {
            this.Handled = false;
            this.keystate = KeyState;
            this.pt = pt;
            this.dropeffect = (DROPEFFECT)Effect;
            this.dataobject = DropDataObject;
        }

        public uint keystate;
        public System.Windows.Point pt;
        public DROPEFFECT dropeffect;
        public DataObject dataobject;
    }
}